package javaMetaModel;

import javaMetaModel.visitor.IMetaModelVisitor;

public class MethodeBody {

	private StringBuffer mContents = new StringBuffer();

	public MethodeBody(String aString) {
		this.mContents.append(aString);
	}

	public MethodeBody() {
		this("");
	}

	public String getContents() {
		return mContents.toString();
	}

	public void setContents(String aContents) {
		this.mContents = new StringBuffer();
		this.mContents.append(aContents);
	}

	public void accept(IMetaModelVisitor aVisitor) {
		aVisitor.visitMethodeBody(this);
	}

	public boolean isEmpty() {
		return this.getContents().isEmpty();
	}

	public void addContent(String aString) {
		this.mContents.append(aString);
		this.mContents.append(System.getProperty("line.separator"));
	}
}
